<?php

class Soul_Validation_Rule_Digit extends Soul_Validation_Rule_Base {

    public function __construct(){
        parent::__construct();
    }

    public function getType() {
        return 'integer';
    }

    public function check($value) {
        return preg_match("/^\d+$/", $value) > 0;
    }
}

